<h1><?php echo $cabecera ?></h1>
<br>
<form class="cmxform" id="signupForm" method="post" 
      <?php 
      if($operacion == "nuevo") 
      {
          echo 'accion = "' . base_url() . 'crol/nuevo" ';          
      }
      if($operacion == "modificar") 
      {
          echo 'accion = "' . base_url() . 'crol/modificar/' . $roles->id . '" ';          
      }
      if($operacion == "eliminar") 
      {
          echo 'accion = "' . base_url() . 'crol/eliminar/' . $roles->id . '" ';          
      }
?>
      novalidate="novalidate">
	<fieldset class="ui-widget ui-widget-content ui-corner-all">
		<legend class="ui-widget ui-widget-header ui-corner-all">Datos del Rol</legend>
		<p>
			<label for="id">Id: </label>
			<input id="id" name="id" type="text" class="ui-widget-content"
                               <?php if($operacion == "modificar" or $operacion == "eliminar") { echo ' value ="'. $roles->id . ' "disabled';}?> >
		</p>
		<p>
			<label for="nombre">Nombre: </label>
			<input id="nombre" name="nombre" type="text" class="ui-widget-content"
                               <?php if($operacion == "modificar" or $operacion == "eliminar") { 
                                   echo  ' value="' . $roles->nombre . '" ';
                                            if($operacion=="eliminar")
                                            {
                                                echo 'disabled';
                                            }                              
                               }                                     
                               ?>>
		</p>
	
		<p>
			<button class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="submit" role="button"><span class="ui-button-text">Guardar</span></button>
		</p>
	</fieldset>
</form>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_js(); ?>jquery-ui-git.css">
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
 <script src="<?php echo base_js(); ?>jquery.validate.min.js"></script>
 <script src="<?php echo base_js(); ?>jquery-ui-git.js"></script> 
 <script src="<?php echo base_js(); ?>validacionRol.js"></script> 

